<!DOCTYPE html>
<html>
<head>
	<title>客户结算点管理(含配置)</title>
	#parse("sys/header.html")
	<!--<link rel="stylesheet" href="${rc.contextPath}/statics/css/bootstrap-select.min.css">-->
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.unitName" @keyup.enter="query" placeholder="单位名称">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<!--#if($shiro.hasPermission("customsettlement:save"))-->
			<!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
			<!--#end-->
			#if($shiro.hasPermission("customsettlement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;配置</a>
			#end
			<!--#if($shiro.hasPermission("customsettlement:delete"))-->
			<!--<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
			<!--#end-->
		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-1 control-label">单位名称</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.unitName" placeholder="单位名称" readonly="readonly"/>
				</div>
				<div class="col-sm-1 control-label">区域基数表id</div>
					<div class="col-sm-2">
					<select v-model="customSettlement.areaBaseId" class="form-control" readonly="readonly">
						<option v-for="areaBaseId in areaBaseIdlist" :value="areaBaseId.id">{{areaBaseId.value}}</option>
					</select>
			    </div>
				<div class="col-sm-1 control-label">合同编号</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.contractNo" placeholder="合同编号" readonly="readonly"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">结算点编码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.settlementNo" placeholder="结算点编码" readonly="readonly"/>
				</div>
				<div class="col-sm-1 control-label">结算点简码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.settlementCode" placeholder="结算点简码" readonly="readonly"/>
				</div>
				<div class="col-sm-1 control-label">结算点名称</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.settlementName" placeholder="结算点名称" readonly="readonly"/>
				</div>
			</div>

			<hr style="height:1px;border:none;border-top:1px solid #555555;" />

			<div class="form-group">
				<div class="col-sm-1 control-label">申报原则</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="customSettlement.principle" placeholder="申报原则"/>-->
					<select v-model="customSettlement.principle" class="form-control">
						<option value="0">0</option>
						<option value="1">1</option>
					</select>
				</div>
				<div class="col-sm-1 control-label">滞后天数</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.delay" placeholder="滞后天数"/>
				</div>
				<div class="col-sm-1 control-label">是否需体检</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.healthCheckup" value="0"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.healthCheckup" value="1"/>否</label>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">是否需求职登记录</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.jobRegistration" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.jobRegistration" value="0"/>否</label>
				</div>
				<div class="col-sm-1 control-label">是否需身份证</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.identityCard" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.identityCard" value="0"/>否</label>
				</div>
				<div class="col-sm-1 control-label">是否需相片</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.picture" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.picture" value="0"/>否</label>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">是否需劳动合同</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.contract" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.contract" value="0"/>否</label>
				</div>
				<div class="col-sm-1 control-label">是否需员工手册签收单</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.ygscqsd" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.ygscqsd" value="0"/>否</label>
				</div>
				<div class="col-sm-1 control-label">是否需体检表</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.healthForm" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.healthForm" value="0"/>否</label>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">员工核定基数</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="customSettlement.empBaseNum" placeholder="员工核定基数"/>-->
					<label class="radio-inline"><input type="radio" v-model="customSettlement.empBaseNum" value="1"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.empBaseNum" value="0"/>否</label>
				</div>
				<!--<div class="col-sm-1 control-label">申报原则</div>-->
				<!--<div class="col-sm-2">-->
					<!--<input type="text" class="form-control" v-model="customSettlement.declarPrinciple" placeholder="申报原则"/>-->
				<!--</div>-->
				<div class="col-sm-1 control-label">五险申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.fiveInsurance" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.fiveInsurance" value="1"/>手动</label>
				</div>

				<div class="col-sm-1 control-label">是否是华顺</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.ishuashun" value="Y"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.ishuashun" value="N"/>否</label>
				</div>

			</div>


			<div class="form-group">
				<div class="col-sm-1 control-label">工伤申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.injuryDeclar" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.injuryDeclar" value="1"/>手动</label>
				</div>
				<div class="col-sm-1 control-label">养老申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.pensionDeclar" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.pensionDeclar" value="1"/>手动</label>
				</div>
				<div class="col-sm-1 control-label">失业申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.unemploymentDeclar" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.unemploymentDeclar" value="1"/>手动</label>
				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-1 control-label">医疗申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.medicareClar" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.medicareClar" value="1"/>手动</label>
				</div>
				<div class="col-sm-1 control-label">生育申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.maternityClar" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.maternityClar" value="1"/>手动</label>
				</div>
				<div class="col-sm-1 control-label">公积金申报</div>
				<div class="col-sm-2">
					<label class="radio-inline"><input type="radio" v-model="customSettlement.accumulationFundDeclar" value="0"/>自动</label>
					<label class="radio-inline"><input type="radio" v-model="customSettlement.accumulationFundDeclar" value="1"/>手动</label>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">五险参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.fiveInsuranceCode" placeholder="五险参保代码"/>
				</div>
				<div class="col-sm-1 control-label">工伤参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.injuryDeclarCode" placeholder="工伤参保代码"/>
				</div>
				<div class="col-sm-1 control-label">养老参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.pensionDeclarCode" placeholder="养老参保代码"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">失业参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.unemploymentDeclarCode" placeholder="失业参保代码"/>
				</div>
				<div class="col-sm-1 control-label">医疗参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.medicareClarCode" placeholder="医疗参保代码"/>
				</div>
				<div class="col-sm-1 control-label">生育参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.maternityClarCode" placeholder="生育参保代码"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">公积金参保代码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.accumulationFundDeclarCode" placeholder="公积金参保代码"/>
				</div>
				<div class="col-sm-1 control-label">工伤报退限制:25</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.injuryExitLimit" placeholder="工伤报退限制:25"/>
				</div>
				<div class="col-sm-1 control-label">结算模式</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="customSettlement.settlementMode" placeholder="结算模式"/>-->
					<select v-model="customSettlement.settlementMode" class="form-control">
						<option v-for="list in settleModeList" :value="list.value">{{list.label}}</option>
					</select>
				</div>
			</div>

			<div class="form-group">
			<div class="col-sm-1 control-label">失业享受限制,多少天内</div>
			<div class="col-sm-2">
				<input type="text" class="form-control" v-model="customSettlement.unemploymentEnjoyLimit" placeholder="失业享受限制,多少天内"/>
			</div>
			<div class="col-sm-1 control-label">入职档案移交时限，30</div>
			<div class="col-sm-2">
				<input type="text" class="form-control" v-model="customSettlement.entryMoveLimit" placeholder="入职档案移交时限，30"/>
			</div>
			<div class="col-sm-1 control-label">离职档案移交时限，30</div>
			<div class="col-sm-2">
				<input type="text" class="form-control" v-model="customSettlement.leaveMoveLimit" placeholder="离职档案移交时限，30"/>
			</div>
		</div>
		<div class="form-group">
				<div class="col-sm-1 control-label">合同续签变更档案移交时限，30</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customSettlement.contractMoveLimit" placeholder="合同续签变更档案移交时限，30"/>
				</div>

				<div class="col-sm-1 control-label">责任区域</div>
				<div class="col-sm-2">
					<select v-model="customSettlement.dutyArea" class="form-control">
						<option v-for="area in dictList" :value="area.value">{{area.label}}</option>
					</select>
					<!--<input type="text" class="form-control" v-model="customSettlement.dutyArea" placeholder="责任区域"/>-->
				</div>

				<div class="col-sm-1 control-label">责任部门</div>
				<div class="col-sm-2">
					<select v-model="customSettlement.dutyDepartment" class="form-control">
						<option v-for="dept in deptlist" :value="dept.id">{{dept.name}}</option>
					</select>
				</div>
		</div>
		<div class="form-group">
				<div class="col-sm-1 control-label">责任人</div>
				<div class="col-sm-2">
					<select v-model="customSettlement.dutyPerson" class="form-control">
						<option v-for="u in userlist" :value="u.userId">{{u.userdesc}}</option>
					</select>
				</div>
		</div>

		<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
		</div>

		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/custom/customsettlement.js?_${date.systemTime}"></script>
<!--<script src="${rc.contextPath}/statics/libs/bootstrap-select.min.js"></script>-->
</body>
</html>